{% extends "study_logs/base.html" %}
{% load bootstrap3 %}

{% block header %}
    <h2>Add a new topic:</h2>
{% endblock header %}

{% block content %}
<p>Add a new topic:</p>
<form action="{% url 'study_logs:new_topic' %}" method='post' class="form">
    {% csrf_token %}  <!--防止攻击者利用表单来获得对服务器未经授权的访问-->
    {% bootstrap_form form %}

    {% buttons %}
        <button name="submit" class="btn btn-primary">add topic</button>
    {% endbuttons %}
</form>
{% endblock content %}